package cn.wh.org.domain;

import cn.wh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain{

    private String sn;
    private String name;
    private String dirPath;

    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Long shop_id;
    //空就不返回
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

    private Employee manager;
    private Department department;
}
